package com.hsmw.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * <p>
 * 作业信息收集 
 * </p>
 *
 * @author tjy
 * @since 2021-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="HsmwJobCollection对象", description="作业信息收集 ")
public class HsmwJobCollection extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "司机id")
    private String driId;

    @ApiModelProperty(value = "工长名称")
    private String foremanName;

    @ApiModelProperty(value = "大概时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate maybeTime;

    @ApiModelProperty(value = "施工部位")
    private String itemPosition;

    @ApiModelProperty(value = "预计方量")
    private String expectVolume;

    @ApiModelProperty(value = "车辆类型")
    private String vehicleType;

    @ApiModelProperty(value = "车辆型号")
    private String vehicleModel;

    @ApiModelProperty(value = "需求数量")
    private String reqCount;

    @ApiModelProperty(value = "工长电话")
    private String foremanPhone;

    @ApiModelProperty(value = "工长电话")
    @TableField(exist = false)
    private String driName;

    @ApiModelProperty(value = "工长电话")
    @TableField(exist = false)
    private String driPhone;
    @ApiModelProperty(value = "项目名称")
    private String itemName;
}
